<?php
class SetupScreens
{
	function __construct( $setup )
	{
		$this->setup	= $setup;
	}

	function saveSettings( $screenID )
	{
		$name	= $this->setup->getNameFromScreenID( $screenID );
		if( $name )
		{
		
			return true;
		}
		return false;
	}
	
	function getView( $screenID )
	{
		$config	= $this->setup->getConfig();
		$words	= $this->setup->getWords();

		$ui	= $config;
		$name	= $this->setup->getNameFromScreenID( $screenID );


		$ui['content']	= $this->buildView( $name, $ui );

		echo $this->buildView( "master", $ui );
	}
	
	private function buildView( $template, $ui )
	{
		extract( $ui );
		return require_once( $template.".phpt" );
	}
}
?>